<template>
  <div class="search-content">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'infoimport',
  data () {
    return {
      tabs: {
        items: [
          {
            key: '1',
            title: '水费'
          },
          {
            key: '2',
            title: '电费'
          },
          {
            key: '3',
            title: '煤气费'
          },
          {
            key: '4',
            title: '公摊费'
          }
        ],
        active: () => {
          switch (this.$route.path) {
            case '/fee/infoimport/warter':
              return '1'
            case '/fee/infoimport/power':
              return '2'
            case '/fee/infoimport/gas':
              return '3'
            case '/fee/infoimport/public':
              return '4'
            default:
              return '1'
          }
        },
        callback: (key) => {
          switch (key) {
            case '1':
              this.$router.push('/fee/infoimport/warter')
              break
            case '2':
              this.$router.push('/fee/infoimport/power')
              break
            case '3':
              this.$router.push('/fee/infoimport/gas')
              break
            case '4':
              this.$router.push('/fee/infoimport/public')
              break
            default:
              this.$router.push('/fee/infoimport/warter')
          }
        }
      },
      search: false
    }
  },
  computed: {

  },
  methods: {
  }
}
</script>

<style lang="less" scoped>
    .search-head{
        background-color: #fff;
        margin: -25px -24px -24px;
        .search-input{
            text-align: center;
            margin-bottom: 16px;
        }
    }
    .search-content{
        margin-top: 48px;
    }
</style>
